package com.lagou.springsessiontest;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author zhangxuyuan
 * @version 1.0
 * @date 2020/11/14
 */
@Entity
@Table(name = "user")
public class User implements Serializable {

    @Id
    private String name;

    private String password;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
